# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=device-pharmer
pkgver=40.b06a460
pkgrel=5
pkgdesc='Opens 1K+ IPs or Shodan search results and attempts to login.'
groups=('blackarch' 'blackarch-cracker')
url='https://github.com/DanMcInerney/device-pharmer'
arch=('any')
license=('MIT')
depends=('python2' 'python2-mechanize' 'python2-beautifulsoup4' 'python2-gevent'
         'python2-shodan' 'python2-setuptools')
makedepends=('git' 'python2-setuptools')
source=("git+https://github.com/DanMcInerney/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

